package com.longe.service;

import com.longe.dao.UserMapper;
import com.longe.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User selectUserByName(String userName){

        User user = userMapper.selectUserByName(userName);
        return user;
    }
}
